import { createSlice } from '@reduxjs/toolkit';
import { initStates, State } from './initState';
import * as reducers from './reducer';

const tabsStore = createSlice({
  name: 'tabs',
  initialState: initStates,
  reducers,
});

export const { addTabs, removeTabs, setTabs } = tabsStore.actions;
export type PermissionState = State;

export default tabsStore.reducer;
